package rhc.spider.middleware.spiderMiddleware;

import rhc.spider.common.SpiderData;
import rhc.spider.middleware.Middleware;
import rhc.spider.request.Response;
import rhc.spider.spider.Spider;

/**spider中间件
 * @author lenovo1
 *
 */
public interface SpiderMiddleware extends Middleware{

	SpiderData processSpiderInput(Spider spider,Response response);
	
	SpiderData processSpiderOutput(Spider spider,Response response,SpiderData data);
	
	SpiderData processSpiderException(Spider spider,Response response,Exception e);
}
